/*
 * Copyright 2020-2021 redragon.dongbin
 *
 * This file is part of redragon-erp/赤龙ERP.

 * redragon-erp/赤龙ERP is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.

 * redragon-erp/赤龙ERP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with redragon-erp/赤龙ERP.  If not, see <https://www.gnu.org/licenses/>.
 */
/**
 * @description DataBox.java
 * @author dongbin
 * @version 
 * @copyright
 */

package com.erp.ledger.je.dao.data;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @description
 * @date 2021年1月31日
 * @author dongbin
 * 
 */
public class DataBox {
    
    //获取单据状态
    public static Map<String, String> getStatusMap(){
        Map<String, String> map = new LinkedHashMap<String, String>();
        map.put("NEW", "新建");
        map.put("ALTER", "变更");
        map.put("CONFIRM", "确认");
        map.put("CANCEL", "取消");
        map.put("REVERSE", "冲销");
        return map;
    }
    
    //获取日记账类型
    public static Map<String, String> getJeType(){
        Map<String, String> map = new LinkedHashMap<String, String>();
        map.put("MANUAL", "手工");
        map.put("SLA", "子分类账");
        map.put("IMPORT", "导入");
        return map;
    }
    
    //获取日记账来源
    public static Map<String, String> getJeSource(){
        Map<String, String> map = new LinkedHashMap<String, String>();
        //map.put("PO", "采购订单");
        //map.put("SO", "销售订单");
        map.put("INPUT", "采购入库");
        map.put("INPUT_OTHER", "杂项入库");
        map.put("INPUT_RETURN", "采购退货");
        map.put("INPUT_PROD_RETURN", "生产退料");
        map.put("INPUT_WIP", "工厂入库");
        
        map.put("OUTPUT", "销售出库");
        map.put("OUTPUT_OTHER", "杂项出库");
        map.put("OUTPUT_RETURN", "销售退货");
        map.put("OUTPUT_PROD_GET", "生产领料");
        map.put("OUTPUT_WIP", "工厂退货");
        
        map.put("AP_INVOICE", "采购发票");
        map.put("AP_INVOICE_PRE", "预付款发票");
        map.put("AP_INVOICE_DEBIT_MEMO", "应付发票借项");
        map.put("AP_INVOICE_CREDIT_MEMO", "应付发票贷项");
        
        map.put("AR_INVOICE", "销售发票");
        map.put("AR_INVOICE_PRE", "预收款发票");
        map.put("AR_INVOICE_DEBIT_MEMO", "应收发票借项");
        map.put("AR_INVOICE_CREDIT_MEMO", "应收发票贷项");
        
        map.put("EXPENSE", "报销单");
        map.put("LOAN", "借款单");
        map.put("REPAY", "还款单");
        
        map.put("PAY", "付款单");
        map.put("RECEIPT", "收款单");
        return map;
    }

}
